import unittest

import bpy


class TestOperator(unittest.TestCase):

    def test_operator(self):
        from ..utils.preferences import Preferences
        pref = Preferences.pref_()
        obj = pref.pop_object

        self.assertEqual(bpy.ops.asset.render_master_clear_asset(), {"FINISHED"})
        self.assertEqual(bpy.ops.asset.render_master_load_asset(), {"FINISHED"})
        self.assertEqual(bpy.ops.asset.render_master_refresh_asset(), {"FINISHED"})
        self.assertEqual(bpy.ops.asset.render_master_refresh_icon(), {"FINISHED"})
        self.assertEqual(bpy.ops.asset.render_master_export_asset(), {"FINISHED"})
        self.assertEqual(bpy.ops.wm.popup_render_window(), {"FINISHED"})
        self.assertEqual(bpy.ops.asset.render_master_import_asset(asset_path=obj.asset_path, asset_type=obj.asset_type),
                         {"FINISHED"})
        # bpy.ops.asset.render_file_export(is_popup_menu=False)
